current_branch=$1
project_path=$2

funcChangeGitBranch() {
	git fetch
	funcCleanGitRepo
	git checkout master
	git pull
	funcCleanGitRepo
	git checkout $current_branch
	git pull
}

funcCleanGitRepo() {
	# 让git仓库保持干净
	git reset --hard
	git clean -df
}

echo "****** 将所当前分支切换至$current_branch 并更新代码 ******"
funcChangeGitBranch
echo "****** END ******"
